import request from '@/utils/request'

// 查询店铺进件关联列表
export function listShopIncoming(query) {
  return request({
    url: '/ecs/shopIncoming/list',
    method: 'get',
    params: query
  })
}

// 查询店铺进件关联详细
export function getShopIncoming(id) {
  return request({
    url: '/ecs/shopIncoming/' + id,
    method: 'get'
  })
}

// 新增店铺进件关联
export function addShopIncoming(data) {
  return request({
    url: '/ecs/shopIncoming',
    method: 'post',
    data: data
  })
}

// 修改店铺进件关联
export function updateShopIncoming(data) {
  return request({
    url: '/ecs/shopIncoming',
    method: 'put',
    data: data
  })
}

// 删除店铺进件关联
export function delShopIncoming(id) {
  return request({
    url: '/ecs/shopIncoming/' + id,
    method: 'delete'
  })
}
